<?php 

include'../classes/db.php';
$nic=$_GET['nic'];
$reg=$_GET['reg'];

$time_now=mktime(date('H')+5,date('i')+30,date('s'),date('m'),date('d'),date('Y'));//get time now
$year=date('Y',$time_now);

$x=new DbConnect();
$con=$x->getConnection();

//check whether nic number is another students one or not
 $result= mysql_query("Select reg_no from student where nic='$nic' and year(j_date)='$year'",$con);
   while($row=mysql_fetch_array($result))
   		{
    	$regno=$row['reg_no'];
    	}
  
    if($reg==$regno)
		{
    	echo"false";
    	} 
	else
		{
  		echo"true";
   		}
?>